g++ -std=c++11 -pthread example.cpp -o example